import React, { useEffect, useState } from 'react'
import { Toast, NavBar, Swiper } from 'react-vant';
import widthRoute from '../Utils/widthRoute';
import { useDispatch, useSelector } from 'react-redux';
import { STORETYPE, PROPSTYPE } from '../Type/Store.d';

function Detail(routes: any) {
    const [detileData, setDetileData] = useState<PROPSTYPE>({})
    const Dispatch = useDispatch();
    const detileDataList = routes.routes.Location.state
    console.log(detileDataList);


    return (
        <div>
            <NavBar
                title="详情页"
                leftText="返回"
                onClickLeft={() => routes.routes.Navigate(-1)}
            />
            <div className="demo-swiper">
                <Swiper autoplay={2000}>
                    {

                    }
                    <Swiper.Item key={1}>

                    </Swiper.Item>
                </Swiper>
            </div>
        </div>
    )
}

export default widthRoute(Detail)